<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>KMS Company</title>
<link href="css/style/style.css" rel="stylesheet" type="text/css">
	<%@page import="model.*"
			import="java.util.ArrayList;"%>
</head>
<body>
	
	<div id="container">
	
		<div id="header">
			<img src="css/images/logo.jpg" alt="" id="logo">
			<h1 id="logo-text">KMS Company</h1>
		</div>
		<div id="nav">
			<ul>
				<li><a href="gui.jsp">Home</a></li>
		<%
			if (null == session.getAttribute("person")) {
		%>
				<li><a href="#">Provide Feedback</a></li>
		<%
			} else {
		%>
				<li><a href="createFeedback.jsp">Provide Feedback</a></li>
		<%
			}
		%>
				<li><a href="viewFeed.jsp">Show Feedback</a></li>
		<%
			if (null == session.getAttribute("person")) {
		%>
				<li><a href="#">Self Profile</a></li>
		<%
			} else {
		%>
				<li><a href="profileAcion.do">Self Profile</a></li>
		<%
			}
		%>
				<li><a href="grid.jsp">About</a></li>
				<li style="border-right: medium none;"><a href="#">Links</a></li>
			</ul>
		</div>
		<div id="site-content">
			<div id="col-left">
				<h1 class="h-text-1">WELCOME</h1>
				<p class="text-1">
					 KMS Technology was founded by a team of information technology veterans in the United States and 
					 Vietnam with a vision of building an agile, innovative and efficient organization that increases 
					 our client’s shareholder value. The KMS leadership team is leveraging our experience in running 
					 both venture backed and public technology companies with operations across multiple continents to 
					 build the optimal company. 

				</p>
				
				<p class="text-1">KMS provides services across the software development lifecycle through partnerships 
				with clients ranging from start-ups to large technology companies. We offer two main service lines: 
				Offshore Product Development and Independent Software Testing. Our infrastructure, methodology, team design, 
				employee profile and client relationship models are designed to maximize the success of our clients in 
				which we can help reduce time to market and increase quality. Most importantly, our culture is defined to 
				encourage our highly experienced teams to deliver innovative solutions that don’t just meet our client’s 
				needs, but also exceed their expectations.

				<p class="text-1">Our objective with our clients is to collaboratively build success stories.  With every 
				client's engagement, we expect both KMS and our clients to share stories of successful projects, products 
				and relationships that we grow and develop each day. We are proud to say that since the start of KMS, we 
				have had 100% success rate with each client we have worked with. If you are interested in learning more 
				about KMS and working with us to write your own success story, </p>
				</p>

				<p class="border-1">&nbsp;</p>
				
			</div>
			
			
			<div id="col-right">
				<div style="padding: 30px 10px 10px;">
					<%
						//Employee user = (Employee) session.getAttribute("user");
						if (null == session.getAttribute("person")) {
							String err = (String) request.getAttribute("error");
							if (null != err) {
					%>
							<p style="color: Red"><%=err%></p>
					<%
								request.removeAttribute("error");
							}
							
					%>
					<form method="post" action="Login.do">
						<h2 class="h-text-2">Login</h2>
						<h3 class="h-text-3">Username</h3>
						<p class="text-2">
							<input type="text" name="username" placeholder="Enter username" size="25" value="admin">
						</p>

						<h3 class="h-text-3">Password</h3>
						<p class="text-2">
							<input type="password" name="password" size="25" value="123">
						</p>
						
						<p><input type="submit" value="submit"></p>
					</form>
				</div>
					<%
						} else {
					%>
							<div align="right"><a href="Login.do?mes=out">Logout</a></div>
							<h4 class="h-text-2">Welcome </h4>
							<h2>${person.username}</h2>
				</div>
				<div>&nbsp;</div>
				<div style="padding: 5px 10px;">
					<h3 class="h-text-2">Contact Info</h3>
				</div>
				<div
					style="padding: 5px 10px 15px; background: rgb(216, 214, 215) none repeat scroll 0%; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;">
					<p class="text-2">
						Fullname:  ${person.fullname}<br> <br> 
						Title:  ${person.title.titleName}<br> <br> 
						Email:  ${person.email}<br> <br>
						Fax:  000.000.0000<br> <br> Phone: 000.000.0000/<br>
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						000.000.0000
					</p>
				</div>
				
				<br/>
				
					<%	
						}
					%>
			</div>
		</div>
		<div id="footer">
			<p>
				@ Copyright 2010. Designed by <a target="_blank"
					href="http://www.htmltemplates.net/">HTML Templates</a>
			</p>
			<ul class="footer-nav">
				<li><a href="#">Home</a></li>
				<li><a href="#">About us</a></li>
				<li><a href="#">Recent articles</a></li>
				<li><a href="#">Email</a></li>
				<li><a href="#">Resources</a></li>
				<li><a href="#">Links</a></li>
			</ul>
		</div>
	</div>
</body>
</html>